//
//  HttpTools.h
//  MIcroBlog
//
//  Created by zhoupengfei on 15/2/12.
//  Copyright (c) 2015年 zpf. All rights reserved.
//

#import <Foundation/Foundation.h>
#define KExchmain @"exchmain"

#define KexchexchangeURL @"http://192.168.100.15:8080/MDIOSOA/jh/exchexchange"
#define KexchangeSubstanceURL @"http://192.168.100.15:8080/MDIOSOA/jh/exchangeSubstance"
#define KexchangeRecord @"http://192.168.100.15:8080/MDIOSOA/jh/exchangeRecord"
//192.168.100.15
#define KPageSize 20
//#define BaseURL @"http://192.168.100.22:8080/"
//122.224.123.170  测试
#define KexchgeneralURL @"http://192.168.100.22:8080/IOSMOA/jh/exchgeneral" //通用接口
#define KexchdataURL @"http://192.168.100.22:8080/IOSMOA/jh/exchdata" //通用接口
#define KexchmailURL @"http://192.168.100.22:8080/IOSMOA/jh/exchmail"  // 邮件
#define KLoginURL @"http://192.168.100.22:8080/IOSMOA/jh/exch" //登录
#define Kexchmain @"http://192.168.100.22:8080/IOSMOA/jh/exchmain"//最新消息

#define kexmoreworkings @"http://192.168.100.22:8080/IOSMOA/jh/exchTansaction"//待办事项更多接口

//#define AnJiBaseURL @"http://122.224.123.170:8080/IOSMOA/jh/" //外网


//代收文件列表
#define KexhcangePageMethod @"exhcangePage"

//代收文件签收
#define KsignExhcangeMethod @"signExhcange"

//已收文件
#define KreceivedExhcangePageMethod @"receivedExhcangePage"

//已收搜索
#define KReceivedSearchMethod @"ReceivedSearch"

//已发文件列表
#define KsendExhcangePageMethod @"sendExhcangePage"

//已发搜索
#define KPostedSearchMethod @"PostedSearch"

//代收搜索
#define KCollectSearchMethod @"CollectSearch"

//代办列表
#define KreceiveMethod @"receive"
#define KSetSubmitInstructions @"setSubmitInstructions" //批事件提交
#define KSetSubmitMeeting @"setSubmitMeeting"  // 2.1.9	会议提交意见
#define KReadFilePage @"readFilePage"//待阅文件
//批事件回复
#define KInstructionsNamelist @"InstructionsNamelist"

#define KSignInRecord @"SignInRecord" // 公文，便函，批示件

#define KSetSubmitMeeting @"setSubmitMeeting"  // 2.1.9	会议提交意见

#define KSetSaveMeeting @"setSaveMeeting" //会议保存意见

#define KSetSubmitInstructions @"setSubmitInstructions" //批事件提交

#define KReadFilePage @"readFilePage"//待阅文件

#define kContentReadFile @"contentReadFile"//待阅文件详细内容
#define KSignInMeetRecord @"SignInMeetRecord" //会议阅读记录
//会议名单
#define KMeetNamelistMethod @"MeetNamelist"
#define KcontentExhcangeMethod @"contentExhcange"//公文收件箱内容
//公文提交意见
#define KSetSubmitBumphMethod @"setSubmitBumph"



#define homePqwoiunu @"homePqwoiunu"//获取最新消息
#define  KTodoPagdMethod @"todoPage" //待办 分页列表
#define KGetOAOfficeMethod @"getOaOffice" //待办/在办 详情页
#define KSetSignInMethod @"setSignIn" //签收
#define KSetSubmitWorkMethod @"setSubmitWork" //发送/提交接口

#define KSetRetStaffList @"setRetStaffList" //选择人员接口
#define KSetStaffListDeliVerMethod @"setStaffListDeliver" //提交选择人员接口
#define KInpageMethod @"inPage" //最新收文接口
#define KContentInMethod @"contentIn" //最新收文详情
#define KDipatchPageMethod @"dipatchPage" //最新发文
#define KContentDipatchMethod @"contentDipatch" //最新发文详情
#define KMailPageMethod @"mailPage" //发件箱列表
#define KContentMailMethod @"contentMail" //邮件详情
#define KOutboxMethod @"outboxPage" //收件箱列表
#define KSendMailMethod @"sendMail" //发送邮件
#define KReturnTreeMethod @"returnTree" //收件列表
#define KSlectronicsPageMethod @"electronicsPage" //近期公告
#define KContentElectronicsMethod @"contentElectronics" //近期公告详情
#define KInfojbPageMethod @"infojbPage" //期刊信息
#define KContentInfoBriefingMethod @"contentInfoBriefing" //期刊信息详情
#define KLookRecord @"lookRecord" //最新收文/发文记录阅读记录接口
#define KSetSaveWork @"setSaveWork" //保存接口

#define  KExchother @"exchother"//短信
#define KMessagePage @"messagePage" //短信列表
#define KMessageSend @"messageSend"

#define KAddressListPage @"globalTxlTree" //通讯录
#define KAdressListSearch @"adressListSearch" //通讯录搜索
#define KGlobalTree @"globalTree"  //2.1.72	全县地址本单位接口
#define KDepTree @"depTree"
#define KDepTxlTree @"depTxlTree"
#define KLocalTree @"localTree"
#define KsTree @"KsTree"
#define KMessageSend @"messageSend"
#define KHomePqwoiunu @"homePqwoiunu"
#define KHomeMailwoiunu @"homeMailwoiunu"

#define KExchTree @"exchTree"
#define KExchmain @"exchmain"
#define  Basemethod @"getAppWebservice"
//#define BaseURL @"http://192.168.1.181:8088/ccpitaoo/appWebservicePort" //内网
#define BaseURL @"http://pa.ccpitzj.gov.cn/ccpitaoo/appWebservicePort" //内网

#define KSystemVersion   [[UIDevice currentDevice] systemVersion]
typedef void (^HttpSuccessBlock) (id JSON);
typedef void (^HttpFailureBlock) (NSError*error);
@interface HttpTools : NSObject
+(void)postWithURL:(NSString*)url arrays:(NSArray*)arrays  method:(NSString*)method success:(void(^)(id JSON))success failure:(void(^)(NSError *error))failure; //post请求
+(void)requestWithURL:(NSString*)url arrays:(NSArray*)arrays  method:(NSString*)method success:(void(^)(id JSON))success failure:(void(^)(NSError *error))failure;//post请求

+(void)downFileWith:(NSString*)url success:(HttpSuccessBlock)success failure:(HttpFailureBlock)failure; //文件下载

@end
